how to run a function as administrator in c#

84

how to run a function as administrator in c# -

[PrincipalPermission(SecurityAction.Demand, Role = @"BUILTIN\Administrators")]
public void MyMethod()
{
  
}

Comments

Submit
0 Comments